package com.atguigu.tingshu.album.client;

import com.atguigu.tingshu.album.client.impl.AlbumInfoDegradeFeignClient;
import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.album.AlbumAttributeValue;
import com.atguigu.tingshu.model.album.AlbumInfo;
import com.atguigu.tingshu.model.search.AttributeValueIndex;
import com.atguigu.tingshu.vo.album.AlbumListVo;
import com.atguigu.tingshu.vo.album.AlbumStatVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 产品列表API接口
 * </p>
 *
 * @author qy
 */
@FeignClient(value = "service-album")//, fallback = AlbumInfoDegradeFeignClient.class)
public interface AlbumInfoFeignClient {

    @GetMapping("/api/album/albumInfo/getAlbumListVoPage/{pageNum}/{pageSize}")
     Result<Page<AlbumListVo>> getAlbumListVoPage(
            @PathVariable Long pageNum,
            @PathVariable Long pageSize);

    @GetMapping("/api/album/albumInfo/findAttributesByAlbumId/{albumId}")
    public Result<List<AttributeValueIndex>> findAttributesByAlbumId(
            @PathVariable("albumId")Long albumId);

    @GetMapping("/api/album/albumInfo/getAlbumListVo/{id}")
    public Result<AlbumListVo> getAlbumListVo(
            @PathVariable("id") Long id
    );



    @GetMapping("/api/album/albumInfo/findAlbumInfo/{id}")
    public Result<AlbumInfo> findAlbumInfo(@PathVariable("id") Long id);

    @GetMapping("/api/album/albumInfo/getAlbumStatVo/{id}")
    public Result<AlbumStatVo> getAlbumStatVo(
            @PathVariable("id") Long id
    );




}